﻿@model ViVa.ActiveDirectory.ADEntry

@{
    ViewBag.Title = "Index";
    Page.Title = "ViVa! Account Zelfservice";
}

<p>@Html.Partial("_Rights", ViewData["SecurityNeeded"])</p>



@if (IsPost)
{
    <div style="padding-left: 10%; padding-right: 11%">
    @Html.Partial("partialViews/_CheckSuccesChange")
    </div>
}

<div class="form">

<h2>Eigenschappen voor @Model.DisplayName</h2>



<form name="selfservice_form" method="post">


  <div class="form_table">
<div class="column">
  <div class="portlet">
		<div class="portlet-header">Telefoonnummers</div>
		<div class="portlet-content">

    <table>

        <tr>
            <td>Telefoon</td><td>@Html.TextBoxFor(x => x.TelephoneNumber)</td>
        </tr>
        <tr>
            <td>Fax</td><td>@Html.TextBoxFor(x => x.FacsimileTelephoneNumber)</td>
        </tr>
        <tr>
            <td>Mobiel</td><td>@Html.TextBoxFor(x => x.Mobile)</td>
        </tr>
        <tr>
            <td>Pager</td><td>@Html.TextBoxFor(x => x.Pager)</td>
        </tr>
        <tr>
            <td>Thuis</td><td>@Html.TextBoxFor(x => x.HomePhone)</td>
        </tr>
        <tr>
            <td>Notities</td><td>@Html.TextAreaFor(x => x.Info)</td>
        </tr>
    </table>
            </div>
	</div>


<div class="portlet">
  <div class="portlet-header">Adresgegevens</div>
  <div class="portlet-content">
    <table>
        <tr>
            <td>Adres</td><td>@Html.TextAreaFor(x => x.StreetAddress)</td>
        </tr>
        <tr>
            <td>Postcode</td><td>@Html.TextBoxFor(x => x.PostalCode)</td>
        </tr>
        <tr>
            <td>Plaats</td><td>@Html.TextBoxFor(x => x.l)</td>
        </tr>
        <tr>
            <td>Land</td><td>
                <select name="co">
                    <option value="Nederland" @if (@Model.co == "Nederland")
                                  {<text>selected="selected"</text>}>Nederland </option>
                    <option value="België" @if (@Model.co == "België")
                                   {<text>selected="selected"</text>}>België </option>
                    <option value="Duitsland" @if (@Model.co == "Duitsland")
                                  {<text>selected="selected"</text>}>Duitsland </option>
                    <option value="Frankrijk" @if (@Model.co == "Frankrijk")
                                  {<text>selected="selected"</text>}>Frankrijk </option>
                </select>
            </td>
        </tr>
    </table>
  </div>
  </div>

<div class="portlet">
  <div class="portlet-header">Organisatie</div>
  <div class="portlet-content">

    <table>
        <tr>
            <td>Personeelsnummer</td><td><input name="employeeID" type="text" maxlength="6" class="text" value="@Model.EmployeeID"></td>
        </tr>
        <tr>
            <td>Functie</td><td><input name="title" type="text" maxlength="64" class="text" value="@Model.Title"></td>
        </tr>
        <tr>
            <td>Afdeling</td><td><input name="department" type="text" maxlength="64" class="text" value="@Model.Department"></td>
        </tr>
        <tr>
            <td>Locatie</td><td><input name="physicalDeliveryOfficeName" type="text" maxlength="64" class="text" value="@Model.PhysicalDeliveryOfficeName"></td>
        </tr>
        <tr>
            <td>Bedrijf</td><td>
                <select name="company">
                    <option value="ViVa! Zorggroep" @if (@Model.Company == "ViVa! Zorggroep")
                                {<text>selected="selected"</text>}>ViVa! Zorggroep </option>
                    <option value="ViVa! Thuis" @if (@Model.Company == "ViVa! Thuis")
                            {<text>selected="selected"</text>}>ViVa! Thuis </option>
                    <option value="Thuiszorgwinkel" @if (@Model.Company == "Thuiszorgwinkel")
                                {<text>selected="selected"</text>}>Thuiszorgwinkel </option>
                    <option value="JGZ Kennemerland" @if (@Model.Company == "JGZ Kennemerland")
                                 {<text>selected="selected"</text>}>ViVa! Zorggroep </option>
                    <option value="Sensia" @if (@Model.Company == "Sensia")
                              {<text>selected="selected"</text>}>Sensia </option>
                    <option value="Extern" @if (@Model.Company == "Extern")
                              {<text>selected="selected"</text>}>Extern </option>

                </select>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
        <tr align="right">
        @Html.HiddenFor(x => x.SamAccountName)
            <td colspan="2"><input name="submit_button" type="submit" value="Toepassen" /></td>
        </tr>
    </table>
  </div>
  </div>
  </div>
</div>
</form>

</div>

